package com.ruoyi.web.controller.service;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.domain.model.LoginApi;
import com.ruoyi.common.core.domain.model.LoginBody;
import com.ruoyi.system.mapper.SysUserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class VimUserServiceImpl implements VimUserService {

    @Resource
    private SysUserMapper sysUserMapper;

    @Override
    public SysUser select(LoginBody loginBody) {
        SysUser sysUser = sysUserMapper.selectUserByUserName(loginBody.getUsername());
        return sysUser;
    }

    @Override
    public void add(SysUser sysUser1) {
        sysUserMapper.add(sysUser1);
    }
}
